using System;
using System.Collections;
using System.Web;
using Sedna.Core.Common;
using Sedna.Core.Controller;
using Sedna.Core.Controller.Common;

namespace Sedna.Core.Controls.Actions
{
	/// <summary>
	/// Summary description for PopupErrorPageOnDataLoadAction.
	/// </summary>
	public class PopupErrorOnDataLoadAction: AbstractAction
	{
		private string errorMessageParamName;

		public string ErrorMessageParamName
		{
			set { errorMessageParamName = value; }
		}

		public override IActionResult Execute(IExecutionContext executionContext)
		{
			executionContext["popupErrorPageContainer.errorMessage.text"]=executionContext.GetScopedValue(errorMessageParamName, Scope.Request);	
			return CreateResult();
		}
	}
}
